package han;

public class J12Account {

	public static void main(String[] args) {
		clAccount ex1 = new clAccount();
		ex1.aid = 1122;
		ex1.balance = 20000;
		ex1.dateCreated = "3월11일";
		
		System.out.println(ex1.aid);
		System.out.println(ex1.balance);
		System.out.println(ex1.dateCreated);
		System.out.println(ex1.getMonthlyInteresRate());
		System.out.println(ex1.getWithDraw());
		System.out.println(ex1.getDeposit());
		
	}
}
	class clAccount{
		int aid,balance,withDraw,deposit;
		double interestRate;
		String dateCreated;
		double getMonthlyInteresRate;
		public double getMonthlyInteresRate(){
			return getMonthlyInteresRate = interestRate / 12;
		}
		public int getWithDraw(){
			return withDraw = balance - 2500 - 3000;
		}
		public int getDeposit(){
			return deposit = withDraw+balance;
		}
		}

